var express = require("express");
var JWT = require("../util/JWT");
var router = express.Router();

/* GET home page. */
router.get("/", function (req, res, next) {
  // 判断 req.session.user
  res.render("index", { title: "Express" });
});

// const token = JWT.generate({ name: "yl" }, "10s");

// console.log(token);
// console.log(JWT.verify(token));

module.exports = router;
